<style>
	.content{
		background: #f5f5f5;
		height:100%;
		min-height: 12.2rem;
		padding-top: 0.3rem;
	}
	.content a .HuiYizhan{
		display: block;
		width: 6.9rem;
		height: 3.6rem;
		margin-left: 0.3rem;
		margin-bottom: 0.3rem;
	}
	.QuChangJing{
		width:6.9rem ;
		height:6.48rem ;
		background:#fff;
		margin-left: 0.3rem;
		border-radius: 0.1rem;
	}
	.QuChangJing a img{
		display: block;
		width: 6.9rem;
		height: 3.3rem;
	}
	.recommendActive{
		border-top:1px solid #EDEDED;

		margin: 0 0.44rem 0.29rem 0.44rem;

	}
	.recommendActive a{
		display: block;
		margin-top: 0.25rem;
		width:6.02rem ;
		height:2.61rem ;
		position: relative;

	}
	.recommendActive a img{
		display: block;
		width:6.02rem ;
		height:2.61rem ;
	}
	.recommendActive .recommendNews{
		position: absolute;
		top: 0.34rem;
		left: 0.43rem;
	}
	.recommendNews h2,h3,p{
		color: #fff;
	}
	h2{
		font-size: 0.32rem;
		font-weight: normal;
	}
	h3{
		font-size: 0.26rem;
		font-weight: normal;
	}
	.recommendNews p{
		font-size: 0.24rem;
		background: url("./res/img/Combined.png") no-repeat 0 0.05rem;
		background-size: 0.19rem 0.23rem ;
		text-indent: 0.25rem;
	}
</style>
<div class="content" ng-show='isShow'>

	<a onclick="openNewApp()"><img class="HuiYizhan" src="res/img/Group02.png"></a>
	<div class="QuChangJing">
		<!--<a href="http://ihui.lincomb.com/iFengChao-Run-UI/#/access/index?"><img src="res/img/Group01.png"></a>-->
		<a ng-click="openRunChangjing()"><img src="res/img/Group01.png"></a>
		<div class="recommendActive" ng-show="record.activityId">
			<a ng-click="goToDetail(record.activityId)">
				<img src="{{record.picurl}}">
				<div class="recommendNews">
					<h2>{{record.theme}}</h2>
					<h3>{{record.heldtime}}</h3>
					<p>{{record.city}}</p>
				</div>
			</a>
		</div>
	</div>
</div>
<script>
	function getUrlParam(name) {
		var paramIndex=window.location.href.indexOf('?')
		if(paramIndex!=-1){
			var parameter= window.location.href.substring(paramIndex)
			var reg = new RegExp("(^|[&|?])" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
			var r = parameter.match(reg); //匹配目标参数
		}
		if (r != null) return unescape(r[2]); return null; //返回参数值
	}
	var webType = getUrlParam("webType");
	var channel = getUrlParam("channel")
	/*console.log(webType);*/
	//ios所用的方法
	function openNewApp() {
		if(channel=="iOS"){
			if (webType == "wkweb") {
				window.webkit.messageHandlers.HYZ_Model.postMessage({body: 'lincombfinance://Service/kcode'});
			} else {
				openApp(url = "lincombfinance://Service/kcode")
			}
		}else if(channel=="Android"){
			window.Hstation.getData()
		}else{
			window.location.href ="http://a.app.qq.com/o/simple.jsp?pkgname=com.lincomb.licai";
		/*	var u = navigator.userAgent;
			var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1; //android终端或者uc浏览器
			var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
			if(isAndroid) {
				window.location.href ="lincombfinance://Service/kcode";
				/!***打开app的协议，有安卓同事提供***!/
				window.setTimeout(function () {
					window.location.href ="http://app.qq.com/#id=detail&appid=1104927770";
					/!***打开app的协议，有安卓同事提供***!/
				}, 2000);
			}
			if(isiOS){
				var ifr = document.createElement("iframe");
				ifr.src = "lincombfinance://Service/kcode"; /!***打开app的协议，有ios同事提供***!/
				ifr.style.display = "none";
				document.body.appendChild(ifr);
				window.setTimeout(function(){
					document.body.removeChild(ifr);
					window.location.href = "http://www.wjtr.com/download/index.html"; /!***下载app的地址***!/
				},2000)
			}*/
		}
	}

















</script>